'use strict';

const Controller = require('egg').Controller;

class ListController extends Controller {
    async index() {
        //查询商品
        let {ctx,service} = this;
        let list = await service.list.index();
        ctx.body = {
            code:1,
            data:list
        }
    }
}

module.exports = ListController;
